<?php
declare (strict_types = 1);

namespace app\common\customer\model;

use app\common\config\logic\DictionaryLogic;
use app\common\config\model\ConfigStatus;
use app\common\system\logic\UserLogic;
use think\Model;
use think\model\concern\SoftDelete;

class CustomerVisitBatch extends Model
{
    protected $table = "tk_member_visit_batch";
    use SoftDelete;
    protected $defaultSoftDelete = 0;


    public function getUserAttr($value, $data) {
        $userLogic = new UserLogic();
        $user = $userLogic->getUser($data['user_id']);

        return $user;
    }
}
